Remove existing indentation from linesΒΆ

textwrap.dedent(S)

Remove existing indentation from all of the lines in a given text.
import textwrap

S = '''
    Python is a widely used high-level, general-purpose, interpreted,
    dynamic programming language. Its design philosophy emphasizes
    code readability, and its syntax allows programmers to express
    concepts in fewer lines of code than possible in languages such
    as C++ or Java. '''

text_without_Indentation = textwrap.dedent(S)

print(text_without_Indentation )

Output:

Python is a widely used high-level, general-purpose, interpreted,
dynamic programming language. Its design philosophy emphasizes
code readability, and its syntax allows programmers to express
concepts in fewer lines of code than possible in languages such